package com.jjyd.crlp.domain.repository;

import com.jjyd.crlp.domain.entity.UserAuth;
import com.jjyd.crlp.domain.entity.type.LoginType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserAuthRepo extends JpaRepository<UserAuth,Integer> {

    UserAuth getByRemoveFalseAndLoginTypeAndCredentialAndIdentifier(LoginType type,String credential, String identifier);

    UserAuth getByRemoveFalseAndIdentifier(String identifier);

}
